﻿using UnityEngine;
using System.Collections;


class Action10031: BaseAction
{
	 private ActionResult actionResult;

     public Action10031()
         : base((int)ActionType.DZApplyInsurancer)
    {
    }

    protected override void SendParameter(NetWriter writer, ActionParam actionParam)
    {
		writer.writeInt32("TableID", actionParam.Get<int>("TableID"));
        writer.writeInt32("UserID", actionParam.Get<int>("UserID"));
    }

    protected override void DecodePackage(NetReader reader)
    {
        return;
        //if (!reader.Success)
        //{
        //    Debug.LogError(string.Format("Action {0} error {1}-{2}", reader.ActionId, reader.StatusCode, reader.Description));
        //    return;
        //}
        //actionResult = new ActionResult();
        //actionResult["UserID"] = reader.getInt();
        //actionResult["HeadIcon"] = reader.readString();
        //actionResult["ApplyInfo"] = reader.readString();
        //actionResult["NickName"] = reader.readString();
    }

    public override ActionResult GetResponseData()
    {
        return actionResult;
    }
}

